/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved.
 */
package com.kaaction.modules.operate.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.operate.entity.ClientMaterial;
import com.kaaction.modules.operate.dao.ClientMaterialDao;

/**
 * 客户需求Service
 * @author zengbiao
 * @version 2017-04-13
 */
@Service
@Transactional(readOnly = true)
public class ClientMaterialService extends CrudService<ClientMaterialDao, ClientMaterial> {

	public ClientMaterial get(String id) {
		return super.get(id);
	}
	
	public List<ClientMaterial> findList(ClientMaterial clientMaterial) {
		return super.findList(clientMaterial);
	}
	
	public Page<ClientMaterial> findPage(Page<ClientMaterial> page, ClientMaterial clientMaterial) {
		return super.findPage(page, clientMaterial);
	}
	
	@Transactional(readOnly = false)
	public void save(ClientMaterial clientMaterial) {
		super.save(clientMaterial);
	}
	
	@Transactional(readOnly = false)
	public void delete(ClientMaterial clientMaterial) {
		super.delete(clientMaterial);
	}
	
	@Transactional(readOnly = false)
	public void deleteByClientId(String activityId) {
		super.dao.deleteByClientId(activityId);
	}
	
	public List<ClientMaterial> findListByClientId(String clientId){
		return super.dao.findListByClientId(clientId);
	}
	
}